package com.nanyang.tms.api.dto.request.saleprice;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nanyang.common.core.domain.ApiRequest;
import com.nanyang.tms.api.dto.request.saleprice.add.SalePartSchemeAddRequest;
import com.nanyang.tms.api.dto.request.saleprice.add.SalePriceAddRequest;
import com.nanyang.tms.api.dto.request.saleprice.add.SalePriceRecordAddRequest;
import com.nanyang.tms.api.dto.request.saleprice.add.SaleWeightAddRequest;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class SaleBaseDiscountAddRequest extends ApiRequest {
    @JsonIgnore
    private String pin;
    /**
     * 销售商品编码
     */
    @NotEmpty(message = " 销售产品编码不能为空")
    @Length(max = 32, message = "saleProductCode长度需小于32个字符")
    private String saleProductCode;

    /**
     * 销售商品名称
     */
    @NotEmpty(message = "销售产品名称不能为空")
    @Length(max = 50, message = "saleProductName长度需小于50个字符")
    private String saleProductName;
    @Valid
    private List<SalePriceDiscountRequest> salePriceDiscountRequestList;
    @Override
    public void requestCheck() {

    }

}
